You are here: Survey management > Creating a survey > Adding a simple question to a survey

Adding a simple question to a survey

You can use a simple question in a survey to collect a single response from users. For example, you can ask whether a user is currently employed or to enter a date of birth.

  1. Click Designer Studio > Survey Management, and then click Edit next to the name of a survey that has at least one question page defined.

  2. In the list of question pages for the survey, right-click the name of a question page and select Add Simple Question > New.

  3. In the Name field of the Add Simple Question dialog box, enter a short description that is associated with the underlying question rule.

    You can change the value in the ID field, which is populated based on the value that you provide in the Name field.

  4. Optional: Expand the Settings section to change the class or ruleset for the question.

    By default, questions apply to the same class as the survey with which they are associated.

  5. In the Question field, enter the text that is displayed when users reach the question in the survey.

  6. Format the fields that users populate to answer the question.

  7. You can validate the answers to questions in a survey by displaying an error when the answer is invalid. To perform validation when the user answers the question:

    1. In the Property Name field, press the Down Arrow key and select a property that stores the values for the answer to the question.
    2. In the Validation field, press the Down Arrow key and select the name of a Rule-Obj-Validate rule that evaluates the values of properties that are mapped to the question.
  8. Click Add to close the Add Simple Question dialog box.
  9. Click Save.

The simple question is created in the class and ruleset that you provide. You can view, edit, or copy it by using the Survey Management landing page. You can also reuse this question in other surveys or flows that use the Question smart shape.

Note: This functionality is available when you purchase and install the PegaSurvey application.

Previous: Adding a question page to a survey

 

Next: Adding a complex question to a survey